<template>
	<div>
		<div class="case-title" v-if="goodsList&&goodsList.length>0">
			<span><i/></span><h3>本店优选</h3><span><em/></span>
		</div>
		<div class="goods-list block" v-if="goodsList&&goodsList.length>0">
			<goods-item v-for="(item,index) in goodsList" :goods="item" key="index"/>
		</div>
	</div>
</template>
<style lang="scss" scoped>
.case-title{

}
</style>
<script lang="ts" setup>
const props=defineProps({
	shopId:{
		type:String,
		required:true,
	},
})

//优选商品列表,示例数据，最多只读取区域有货的默认排序头20个商品
const goodsList = ref(<Array<any>>[])  //最新上架只加载最近半年内最多6个上架商品
goodsList.value = [
	{
		gdsId:'1254266',
		gdsImg:'https:www.woego.cn/woego/image/6449d39e2b608d0a734b9585_140x140!.jpg',
		gdsName:'小象智能家庭医生 小象智能家庭医生小象智能家庭医生',
		agentPrice:43000,
		guidePrice:48000,
		saleAmount:429,
		hasCoupon:true,
		noStork:true,
	},
	{
		gdsId:'1227867',
		gdsImg:'https://www.woego.cn/woego/image/622aaf5a75e50b69f7a2b40d_140x140!.jpg',
		gdsName:'Apple iPhone 13 Pro Max',
		agentPrice:530000,
		guidePrice:580000,
		saleAmount:99999,
		noStork:true,
	},
	{
		gdsId:'1227867',
		gdsImg:'https://www.woego.cn/woego/image/622aaf5a75e50b69f7a2b40d_140x140!.jpg',
		gdsName:'Apple iPhone 13 Pro Max Apple iPhone 13 Pro Max Apple iPhone 13 Pro Max',
		guidePrice:580000,
		saleAmount:99999,
		hasCoupon:true,
		noStork:false,
	},
	{
		gdsId:'1227867',
		gdsImg:'https://www.woego.cn/woego/image/622aaf5a75e50b69f7a2b40d_140x140!.jpg',
		gdsName:'Apple iPhone 13 Pro Max',
		agentPrice:530000,
		guidePrice:580000,
		saleAmount:99999,
		noStork:true,
	},
	{
		gdsId:'1254266',
		gdsImg:'https:www.woego.cn/woego/image/6449d39e2b608d0a734b9585_140x140!.jpg',
		gdsName:'小象智能家庭医生 小象智能家庭医生 小象智能家庭医生',
		agentPrice:43000,
		guidePrice:48000,
		saleAmount:99999,
		hasCoupon:true,
		shopName:'安布雷拉旗舰店安布雷拉旗舰店安布雷拉旗舰店安布雷拉旗舰店安布雷拉旗舰店',
		shopId:'ABRL4321',
		shopType:'华盛全国店',
	},
	{
		gdsId:'1254266',
		gdsImg:'https:www.woego.cn/woego/image/6449d39e2b608d0a734b9585_140x140!.jpg',
		gdsName:'小象智能家庭医生',
		agentPrice:43000,
		guidePrice:48000,
		saleAmount:99999,
		shopName:'安布雷拉旗舰店',
		shopId:'ABRL4321',
		shopType:'平台省分店',
	},
	{
		gdsId:'1254266',
		gdsImg:'https:www.woego.cn/woego/image/6449d39e2b608d0a734b9585_140x140!.jpg',
		gdsName:'小象智能家庭医生 小象智能家庭医生小象智能家庭医生',
		agentPrice:43000,
		guidePrice:48000,
		saleAmount:0,
		shopName:'安布雷拉旗舰店',
		shopId:'ABRL4321',
		shopType:'联通自营店',
	},
	{
		gdsId:'1227867',
		gdsImg:'https://www.woego.cn/woego/image/622aaf5a75e50b69f7a2b40d_140x140!.jpg',
		gdsName:'Apple iPhone 13 Pro Max',
		agentPrice:530000,
		guidePrice:580000,
		saleAmount:9,
	},
	{
		gdsId:'1227867',
		gdsImg:'https://www.woego.cn/woego/image/622aaf5a75e50b69f7a2b40d_140x140!.jpg',
		gdsName:'Apple iPhone 13 Pro Max Apple iPhone 13 Pro Max Apple iPhone 13 Pro Max',
		agentPrice:530000,
		guidePrice:580000,
	},
	{
		gdsId:'1227867',
		gdsImg:'https://www.woego.cn/woego/image/622aaf5a75e50b69f7a2b40d_140x140!.jpg',
		gdsName:'Apple iPhone 13 Pro Max',
		agentPrice:530000,
		guidePrice:580000,
	},
	{
		gdsId:'1254266',
		gdsImg:'https:www.woego.cn/woego/image/6449d39e2b608d0a734b9585_140x140!.jpg',
		gdsName:'小象智能家庭医生 小象智能家庭医生 小象智能家庭医生',
		agentPrice:43000,
		guidePrice:48000,
	},
	{
		gdsId:'1254266',
		gdsImg:'https:www.woego.cn/woego/image/6449d39e2b608d0a734b9585_140x140!.jpg',
		gdsName:'小象智能家庭医生',
		agentPrice:43000,
		guidePrice:48000,
	},
	{
		gdsId:'1254266',
		gdsImg:'https:www.woego.cn/woego/image/6449d39e2b608d0a734b9585_140x140!.jpg',
		gdsName:'小象智能家庭医生 小象智能家庭医生小象智能家庭医生',
		agentPrice:43000,
		guidePrice:48000,
	},
	{
		gdsId:'1227867',
		gdsImg:'https://www.woego.cn/woego/image/622aaf5a75e50b69f7a2b40d_140x140!.jpg',
		gdsName:'Apple iPhone 13 Pro Max',
		agentPrice:530000,
		guidePrice:580000,
	},
	{
		gdsId:'1254266',
		gdsImg:'https:www.woego.cn/woego/image/6449d39e2b608d0a734b9585_140x140!.jpg',
		gdsName:'小象智能家庭医生 小象智能家庭医生 小象智能家庭医生',
		agentPrice:43000,
		guidePrice:48000,
		saleAmount:50,
	},
	{
		gdsId:'1254266',
		gdsImg:'https:www.woego.cn/woego/image/6449d39e2b608d0a734b9585_140x140!.jpg',
		gdsName:'小象智能家庭医生',
		agentPrice:43000,
		guidePrice:48000,
		saleAmount:0,
	},
]
</script>